import { GET_USERINFO, DEL_USERINFO } from '../actionsTypes'
const initValue = {}
export default function user (state = initValue, { type, payload }) {
  if (type === GET_USERINFO) {
    return payload
  } else if (type === DEL_USERINFO) {
    return {}
  }
  return state
}
